//
//  ViewController.m
//  类的方法
//
//  Created by clz on 2019/7/7.
//  Copyright © 2019年 clz. All rights reserved.
//

#import "ViewController.h"
#import "Persion.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    Persion *persion = [[Persion alloc]init];
    persion.name = @"晓明";
    persion.age = 12;
    [persion functionName];
    NSLog(@"persion.age = %ld",(long)persion.age);
    [persion functionNameWithAge:13];
    NSLog(@"persion.age = %ld",(long)persion.age);
    
    persion.age = [persion function3];
    NSLog(@"persion.age = %ld",(long)persion.age);

   
}


@end
